<!-- Dom模板 -->
<template>
  <div>
    <div class="bottom animate__animated animate__bounceInUp">
      <router-link
        v-for="(item, index) in navList"
        :key="index"
        :to="item.path"
        tag="div"
        class="on"
        :class="$route.meta.nowIndex === index ? 'active' : ''"
      >
        <img  :src="item.meta.icon" alt="" class="animate__animated animate__shakeY" />
        <span  class="boko" :class="item.meta.icon" ></span>
        <span class="iconss">{{ item.meta.title }}</span>
      </router-link>
    </div>
  </div>
</template>
<script>
export default {
  name: "",
  data() {
    return {
      msg: "测试",
      navList: [],
    };
  },
  // 生命周期 - 创建完成（访问当前this实例）
  created() {},
  // 生命周期 - 挂载完成（访问DOM元素）
  mounted() {
    this.navList = this.$router.options.routes.filter((item) => {
      return item.meta.flag;
    });
    // console.log(this.navList);
  },
  // Vue方法定义
  methods: {},
};
</script>

<style scoped>
@import url("../../assets/font/iconfont.css");
.bottom {
  margin-top: 30px;
  width: 414px;
  height: 60px;
  position: fixed;
  bottom: 0;
  line-height: 20px;
  border-radius: 26px 26px 0px 0px;
  text-align: center;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0px -2px 6px 0px rgba(225, 225, 225, 40);
}
.bottom .on {
  display: flex;
  width: 60px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  letter-spacing: 2px;
   color: rgba(190, 191, 190, 100);
  font-size: 12px;
}
.bottom .on div {
  width: 66px;
  font-size: 12px;

  height: 66px;
  line-height: 20px;
  background-color: rgba(10, 206, 176, 100);
  text-align: center;
  border: 4px solid rgba(255, 255, 255, 100);
  border-radius: 50%;
}
.bottom .on div img {
  margin-top: 15px;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  width: 32px;
  height: 32px;
}
.bottom .on:nth-child(2) {
  width: 66px;
  height: 66px;
  line-height: 20px;
  border-radius: 50%;
  background-color: rgba(10, 206, 176, 100);
  text-align: center;
  border: 4px solid rgba(255, 255, 255, 100);
}
.bottom .active{
  /* color: #0aceb0; */
  color:#09d0b2;
  /* background: chartreuse; */
  /* font-size: 15px; */
}
.bottom .on img{
margin-top: 10px;

}
.bottom .on .boko{
  font-size: 34px;
  margin-top: 5px;
  margin-bottom: 5px;
  
}
/* .bottom .on .iconss{
  color: black;
} */
/* .bottom .on:nth-child(3) span {
  width: 24px;
  height: 17px;
  color: rgba(190, 191, 190, 100);
  font-size: 12px;
  text-align: left;
  font-family: PingFangSC-regular;
}  */
</style>